<?php
$id = $_POST['id'];

$conn = new mysqli("localhost", "root", "", "simple_weibo");
$conn->query("set names 'utf8'");
$sql = "insert into weibo_complaint(weibo_id) values (".$id.")";
$res = $conn->query($sql);

if($res){
    echo "投诉成功，请等候管理员处理";
}else{
    echo "投诉失败";
}
